import { createRouter, createWebHistory } from 'vue-router'
import PromptDisplay from '../components/PromptDisplay.vue'
import DslExamples from '../components/DslExamples.vue'
import SqlTemplates from '../components/SqlTemplates.vue'
import EnumConfig from '../components/EnumConfig.vue'
import SynonymConfig from '../components/SynonymConfig.vue'
import RuleConfig from '../components/RuleConfig.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../App.vue')
  },
  {
    path: '/prompts',
    name: 'Prompts',
    component: PromptDisplay
  },
  { 
    path: '/dsl-examples', 
    name: 'DslExamples', 
    component: DslExamples 
  },
  { 
    path: '/sql-templates', 
    name: 'SqlTemplates', 
    component: SqlTemplates 
  },
  {
    path: '/enum-config',
    name: 'EnumConfig',
    component: EnumConfig
  },
  {
    path: '/synonym-config',
    name: 'SynonymConfig',
    component: SynonymConfig
  },
  {
    path: '/rule-config',
    name: 'RuleConfig',
    component: RuleConfig
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router 